Don't use g_drag_context_ref
authorTor Lillqvist <tml@iki.fi>
Mon, 10 May 2010 15:27:00 +0000 (18:27 +0300)
committerTor Lillqvist <tml@iki.fi>
Mon, 10 May 2010 16:18:29 +0000 (19:18 +0300)
gdk/win32/gdkdnd-win32.c

index 472ff69cd19c5d485ad58607780c259a9c2cd1ac..dc34afe45e1694a95d8ffa37dbdcfc96cb6449ea 100644 (file)
@@ -437,7 +437,7 @@ dnd_event_put (GdkEventType    type,
   e.dnd.x_root = pt.x + _gdk_offset_x;
   e.dnd.y_root = pt.x + _gdk_offset_y;
 
-  gdk_drag_context_ref (e.dnd.context);
+  g_object_ref (e.dnd.context);
   if (e.dnd.window != NULL)
     g_object_ref (e.dnd.window);
 
@@ -1815,7 +1815,7 @@ gdk_drag_begin (GdkWindow *window,
       _dnd_source_state = GDK_WIN32_DND_PENDING;
 
       pending_src_context = ctx;
-      gdk_drag_context_ref (ctx->context);
+      g_object_ref (ctx->context);
 
       return ctx->context;
     }